<?php

$redirect = "login.php";
header('Location: '. $redirect );


exit;
require_once('../../core.inc.php');
require_once('Model/SiteManage.php');
require_once('View/Smarty.php');

$sys = new Model_SiteManage();
$sys->checkLogin();

$params = $_REQUEST;
$smarty = new View_Smarty($params);

/*
require_once( '../../system/libs/const.php' );
require_once( '../../system/libs/Class_DB.php' );
require_once( '../../system/libs/Class_ERROR.php' );
require_once( '../../system/libs/login.inc.php' );
$db = new Class_DB;
$site_id = $_SESSION['DASH_BOARD']['SITE_ID'];

// information
$sql = "SELECT *, DATEDIFF(CURRENT_TIMESTAMP, info_date) AS new_flag FROM M_INFORMATION WHERE enabled = 1 AND site_id = {$site_id} AND status = 1 AND info_date <= CURRENT_DATE AND ( st_datetime IS NULL OR st_datetime <= CURRENT_TIMESTAMP ) AND ( ed_datetime IS NULL OR ed_datetime > CURRENT_TIMESTAMP ) ORDER BY info_date DESC, id DESC LIMIT 5";
$db->query($sql);
$information = array();
while($res = $db->fetch()){
	$information[] = $res;
}
$smarty->assign('information', $information);
*/

//$smarty->display('index.html');

?>